package com.example.myapplication1.clicktest;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;

import androidx.annotation.Nullable;

import com.example.myapplication1.R;
import com.example.myapplication1.Utils.NumberUtil;

/**
 * Copyright (C), 2020, 重庆八进制有限公司
 *
 * @author: weng
 * @last-modifier: weng
 * @version: 1.0
 * @create-date: 2020/10/26 17:00
 * @last-modify-date: 2020/10/26 17:00
 * @description:
 */
public  class ClickTestActivity extends Activity {
    private static final String TAG = "ClickTestActivity";
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_clicktest);
    }



    @Override
    public boolean onTouchEvent(MotionEvent event) {

        switch (event.getAction()){
            case MotionEvent.ACTION_DOWN:
                Log.e("tag",TAG+"----"+"MotionEvent.ACTION_DOWN");
                return true;
            case MotionEvent.ACTION_MOVE:
                Log.e("tag",TAG+"----"+"MotionEvent.ACTION_MOVE");
                return false;
            case MotionEvent.ACTION_UP:
                Log.e("tag",TAG+"----"+"MotionEvent.ACTION_UP");
                return false;
        }
        return super.onTouchEvent(event);
    }
}
